package ycj.learn.springcloud.core.service;


import org.springframework.cloud.openfeign.FeignClient;
import ycj.learn.springcloud.core.entities.Res;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value="PROVIDER-USER",fallbackFactory = UserClientServiceFallbackFactory.class)
public interface UserClientService {

    @GetMapping(value = "/user/{id}")
    public Res getOne(@PathVariable(value = "id") Long id);

}
